package com.hwz.mapper;

import com.hwz.annotation.AutoFill;
import com.hwz.dto.ShoppingCartDTO;
import com.hwz.entity.ShoppingCart;
import com.hwz.enumeration.OperationType;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface ShoppingCartMapper {

    List<ShoppingCart> selectList(ShoppingCart shoppingCart);

    void updateNumberById(ShoppingCart shoppingCart);

    void insert(ShoppingCart shoppingCart);

    void deleteById(Long id);

    void deleteByUserId(Long userId);

    void insertBatch(List<ShoppingCart> shoppingCartList);
}
